package com.lagou.edu.service;

import com.lagou.edu.service.impl.UserServiceFallBack;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author stevejson
 */
@FeignClient(name = "lagou-service-user",path = "/user", configuration = {FeignClient.class}, fallback = UserServiceFallBack.class)
public interface IUserServiceFeignClient {
    @RequestMapping(value = "/info/{token}", method = RequestMethod.GET)
    public String info(@PathVariable String token);
}
